package com.px.user.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;

import java.sql.Timestamp;

@Data
@AllArgsConstructor
@Builder
public class UserModel {
    private Long id;
    private String username;
    private String roles;
    private String phone;
    @JsonIgnore
    private String password;
    private int sex;
    private String nickname;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyyMMdd HHmmss", timezone = "GMT+8")
    private Timestamp createTime;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyyMMdd HHmmss", timezone = "GMT+8")
    private Timestamp updateTime;
}
